/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package facades;

import entities.TipoTicket;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author damfercer
 */
@Stateless
public class TipoTicketFacade extends AbstractFacade<TipoTicket> {
    @PersistenceContext(unitName = "CorporatePU")
    private EntityManager em;
    private final Integer ventaId=1;
    private final Integer reservaId=2;
    private final Integer devolucionId=3;
    
    @Override
    protected EntityManager getEntityManager() {
        return em;
    }

    public TipoTicketFacade() {
        super(TipoTicket.class);
    }
    
    public TipoTicket getTipoTicketVenta(){
        return this.find(ventaId);
    }
    
    public TipoTicket getTipoTicketReserva(){
        return this.find(reservaId);
    }
    
    public TipoTicket getTipoTicketDevolucion(){
        return this.find(devolucionId);
    }
}
